<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<style type="text/css">
	p { font-family: sans-serif; }
	textarea { width: 25em; height: 15em; }
</style>
<title>#6</title>
<script type="application/javascript" src="../lib/fastclick.js"></script>
<script type="application/javascript">
	window.addEventListener('load', function() {
		new FastClick(document.body);
		Array.prototype.forEach.call(document.getElementsByClassName('button'), function(button) {
			button.addEventListener('click', function(event) {
				console.log(event.target.nodeName + ' was tapped (forwarded: ' + (event.forwardedTouchEvent ? 'yes' : 'no') + ')');
			}, false);
		});
	}, false);
</script>
</head>
<body>
	<textarea>FastClick is instantiated on the document body. Tap this textarea to gain focus.</textarea>
	<p>Open the browser console to see debug info.</p>
	<input type="button" class="button" value="Now tap this <input> button">
	<br><br>
	<button class="button">Now tap this &lt;button&gt; button</button>
</body>
</html>